<?php

namespace Yousheng\DatabaseToolbox;

use Illuminate\Support\ServiceProvider as BaseServiceProvider;
use Yousheng\DatabaseToolbox\Console\DatabaseCreateCommand;
use Yousheng\DatabaseToolbox\Console\Json2Migrations;
use Yousheng\DatabaseToolbox\Console\MigrationsFromDatabaseCommand;
use Yousheng\DatabaseToolbox\Console\DatabaseCreateCommand2;

class ServiceProvider extends BaseServiceProvider {
    public function register() {

    }

    public function boot() {
        if($this->app->runningInConsole()) {
            $this->commands([
                Json2Migrations::class,
                DatabaseCreateCommand2::class,
                MigrationsFromDatabaseCommand::class,
            ]);
        }
    }
}